package com.vlin;

import org.json.JSONObject;

import com.vlin.api.client.Client;
import com.vlin.api.client.Method;
import com.vlin.api.client.Params;
import com.vlin.api.client.defaut.DefaultApiPoolClient;
import com.vlin.api.client.defaut.DefaultClient;
import com.vlin.constant.API;
import com.vlin.constant.TuyaAPIConstant;

public class VlinService {

	public static final String CLIENT_ID = "kd7w58t5s9c98txeg5jf";
	
	public static final String SECRET = "q5h3q9fuvmusd4u9j3uev7hnurj559fx";
	
	public static final String tuyaHost= "https://openapi.tuyacn.com/";
	
	public static final String SIGN_METHOD = "HMAC-SHA256";
	
	
	public static void main(String[] args) {
		Client client = new DefaultClient(TuyaAPIConstant.tuyaHost, API.TUYA);
		client.setApiClient(new DefaultApiPoolClient());
		Params params = new Params();
		
		for(int i = 0; i < 100; i ++) {
			JSONObject result = client.send("/v1.0/infrareds/5651553284f3eb1482e2/categories",params, Method.GET);
			System.out.println(result);
		}
		
	}
	 

}
